package com.springboot.demo.design.pattern.template;

/**
 * 请客吃牛排
 *
 * @author supu
 * @date 2019-07-05 10:42
 **/
public class Steak extends Dinner {
    @Override
    protected void cooking() {
        System.out.println("牛排制作中");
    }

    @Override
    protected void eating() {
        System.out.println("牛排食用中");
    }

    /**
     * 重写钩子方法，由于是vip会员，所以不用付费
     *
     * @param isPay
     */
    @Override
    protected void isPay(boolean isPay){
       this.isPay = isPay;
    }
}
